<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>首页</title>
	<meta name="decorator" content="cms_default_${site.theme}"/>
	<meta name="description" content="JeeSite ${site.description}" />
	<meta name="keywords" content="JeeSite ${site.keywords}" />
	<style type="text/css">
		li {
			line-height:25px;
		}
	</style>
</head>
<body>
    <div style="padding-bottom:0px;margin:10px 0;">
    <!-- <div class="hero-unit" style="padding-bottom:35px;margin:10px 0;"> -->
      <c:set var="article" value="${fnc:getArticle('2')}"/>
      <h2>${fns:abbr('天津检验检疫“双随机”系统',40)}</h2><p></p>
      <p>${fns:abbr(fns:replaceHtml(article.articleData.content),260)}</p>
      <%-- <p><a href="${article.url}" class="btn btn-primary btn-large">&nbsp;&nbsp;&nbsp;查看详情 &raquo;&nbsp;&nbsp;&nbsp;</a></p> --%>
    </div>
    <div id="demo" class="row">
      <div class="span6" id="demo1">
        <h4><small><a href="${ctx}/listsx-2${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>“双随机”抽查检查事项</h4>
		<ul id="express"><c:forEach items="${fnc:getSxList('', '', 10, '')}" var="drSx">
			<li><span class="pull-right"><fmt:formatDate value="${drSx.createDate}" pattern="yyyy.MM.dd"/></span><a href="${ctx}/listd-2-${drSx.id}${urlSuffix}">${fns:abbr(drSx.sxMc,50)}</a></li>
		</c:forEach></ul>
      </div>
      <div class="span6" id="demo2">
        <h4> <small><a href="${ctx}/listjh-3${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>“双随机”抽查检查计划</h4>
		<ul><c:forEach items="${fnc:getJhList('', '', 10, '')}" var="drJh">
			<li><span class="pull-right"><fmt:formatDate value="${drJh.createDate}" pattern="yyyy.MM.dd"/></span><a href="${ctx}/listj-3-${drJh.id}${urlSuffix}">${fns:abbr(drJh.jhMc,50)}</a></li>
		</c:forEach></ul>
      </div>
    </div>
    
    <div id="demo3" class="row">
      <div class="span6" id="demo4">
        <h4><small><a href="${ctx}/listrw-4${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>“双随机”抽查检查任务</h4>
		<ul id="express"><c:forEach items="${fnc:getRwList('', '', 10, '')}" var="drRw">
			<li><span class="pull-right"><fmt:formatDate value="${drRw.createDate}" pattern="yyyy.MM.dd"/></span><a href="${ctx}/listr-4-${drRw.id}${urlSuffix}">${fns:abbr(drRw.rwMc,50)}</a></li>
		</c:forEach></ul>
      </div>
      <div class="span6" id="demo5">
        <h4> <small><a href="${ctx}/list-6${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>通知公告</h4>
		<ul><c:forEach items="${fnc:getArticleList(site.id, 6, 10, '')}" var="article">
			<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,40)}</a></li>
		</c:forEach></ul>
      </div>
    </div>    
	<form action="${ctx}/login" method="post" style="text-align:center">
		<input class="btn btn-large btn-primary" type="button" value="系 统 登 录" style="margin-top:50px;width:150px" onclick="javascript:location='${pageContext.request.contextPath}${fns:getAdminPath()}'"/>&nbsp;&nbsp;
	</form>    
</body>
</html>
<script type="text/javascript">
	var dome=document.getElementById("dome");
	var dome1=document.getElementById("dome1");
	var dome2=document.getElementById("dome2");
	var speed=50;//设置向上轮动的速度
	dome2.innerHTML=dome1.innerHTML;//复制节点
	function moveTop(){
	if(dome1.offsetHeight-dome.scrollTop<=0){
	dome.scrollTop=0;
	}else{
	dome.scrollTop++;
	}
	}
	var myFunction=setInterval("moveTop()",speed);
	dome.onmouseover=function(){
	clearInterval(myFunction);
	}
	dome.onmouseout=function(){
	myFunction=setInterval(moveTop,speed);
	}
</script>